package entity;


import java.io.Serializable;

/**
 * @program: IoT201759225309
 * @description: Device实体类
 * @author: Xiaozhuoer
 * @create: 2021-06-01 19:05
 **/

public class Device implements Serializable {


    private String idString = " "; //设备ID的String类型
    private String devicename;//设备名称
    private String updatetime;//数据更新数据
    private String value = " ";
    private int status;// 状态: 0-在线 1-离线
    private int type;// 数据类型: 0-数值测量值型, 1-开关状态型, 2-地理位置定位型, 3-文本预警消息型


    @Override
    public String toString() {
        return "Device{" +
                "idString='" + idString + '\'' +
                ", devicename='" + devicename + '\'' +
                ", updatetime='" + updatetime + '\'' +
                ", value='" + value + '\'' +
                ", status=" + status +
                ", type=" + type +
                '}';
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getIdString() {
        return idString;
    }

    public void setIdString(String idString) {
        this.idString = idString;
    }
    public String getDevicename() {
        return devicename;
    }

    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
